<div >
    <form class="form-horizontal" role="form" novalidate name="stForm" >
        <div class="form-ctrl md-whiteframe-z1">
            <div class="form-search" style="height:170px;" ng-class="{true: 'shou'}[shoumun==0]" >
                <div>
                    <label style="width:70px">归属地</label>
                    <md-select multiple ng-model="translate.provinceCodes" >
                        <md-select-label>
                            {{translate.provinceCodes.length ? _getNames(translate.provinceCodes,'provinceName',provinces) :'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(translate,'provinceCodes')">全部</md-option>
                        <md-option ng-value="province" ng-repeat="province in provinces">{{province.provinceName}}</md-option>
                    </md-select>
                </div>
                <div>
                    <label style="width:70px">用户状态</label>
                    <md-select multiple ng-model="translate.userStateCode" ng-click = 'queryUserState()'>
                        <md-select-label>
                            {{translate.userStateCode.length ? _getNames(translate.userStateCode,'userStateName',stateList) :'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(translate,'userStateCode')">全部</md-option>
                        <md-option ng-value="state" ng-repeat="state in stateList">{{state.userStateName}}</md-option>
                    </md-select>
                </div>

                <div class="menus" style = 'padding-top:35px'>
                    <md-button style="height:35px;width:50px " ng-click = 'resetValue()'  class="md-raised">重置</md-button>
                </div>

            </div>
            <md-button ng-click="queryUserData()" ng-click="shoumun==1?shoumun=0:shoumun=1" class="md-fab md-primary md-hue-1" ng-disabled ='stForm.$invalid' aria-label="Profile">
                <i class="glyphicon glyphicon-arrow-down" style="margin-top:28px;" ng-show="shoumun==0"></i>
                <i class="glyphicon glyphicon-search" ng-show="shoumun==1"></i>
            </md-button>
        </div>
    </form>
    <div class="table-info">
        <div class="menus">
           <form action="{{exportUrl}}"  st target="_black" method="post" style="display: initial;">
               <input type="hidden" value="{{outData}}"  name="data" />
               <md-button  type="submit"  class="md-raised">导出Excel</md-button>
           </form>
        </div>
        <div ng-show = 'flag'>
            <div>
                <div style="text-align: center">
                    <h3 style="margin-top:0;font-size:large;font-weight:bold;color:black">省市地区用户状态统计</h3>
                </div>
                <div class="table-detail">
                    <div class="t_r">
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th width="10%">归属地</th>
                                <th width="10%">用户</th>
                                <th width="10%">总量</th>
                                <th width="15%">正常</th>
                                <th width="10%">单向停机</th>
                                <th width="10%">停机</th>
                                <th width="10%">预消号</th>
                                <th width="10%">消号</th>
                                <th width="10%">过户</th>
                                <th width="10%">休眠</th>
                                <th width="10%">待激活</th>
                                <th width="10%">号码不存在</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="user in userData">
                                <td width="10%" >{{user.provinceName}}</td>
                                <td width="10%" >{{user.user}}</td>
                                <td width="10%" >{{user.total}}</td>
                                <td width="10%" >{{user.normal}}</td>
                                <td width="10%" >{{user.onewayStop}}</td>
                                <td width="10%" >{{user.stop}}</td>
                                <td width="10%" >{{user.prepareLogout}}</td>
                                <td width="10%" >{{user.logout}}</td>
                                <td width="10%" >{{user.transfer}}</td>
                                <td width="10%" >{{user.dormant }}</td>
                                <td width="10%" >{{user.waitActivate}}</td>
                                <td width="10%" >{{user.numberNonentity}}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>

        </div>
        <div id = 'userState' style='height:550px;padding-bottom:20px'> </div>
    </div>
</div>
